Skip to content

fix: use DeltaCommitmentMismatch error instead of CurveArithmetic - #1346

Open
victorchukwuemeka wants to merge 1 commit into
solana-program:mainfrom
victorchukwuemeka:fix/delta-commitment-error-variant
Open

fix: use DeltaCommitmentMismatch error instead of CurveArithmetic#1346
victorchukwuemeka wants to merge 1 commit into
solana-program:mainfrom
victorchukwuemeka:fix/delta-commitment-error-variant

Conversation

@victorchukwuemeka

Copy link
Copy Markdown
Contributor

In verify_delta_commitment, when the proof's delta commitment doesn't match the on-chain recomputed value, the code was returning CurveArithmetic — which is misleading since both points are valid and the math succeeded. It's a data mismatch, not an arithmetic failure.

Added a DeltaCommitmentMismatch variant to TokenProofExtractionError and used it in the correct place.

Also fixed a typo in processor.rs (insructioninstruction).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant